package com.bestcem.xm.ticket.dao.mapper;

import com.bestcem.xm.ticket.entity.mysql.TicketRecordDO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/22 15:09
 */
@Mapper
public interface TicketRecordDaoMapper {

    TicketRecordDO findByTicketRecordId(String ticketRecordId);

    TicketRecordDO findByTicketId(String ticketId);

    TicketRecordDO findByTicketIdAndEvent(String ticketId, Integer event);

    TicketRecordDO findByTicketIdAndEventAndCreateTime(String ticketId, Integer event, LocalDateTime createTime);

    void insert(TicketRecordDO ticketRecordDO);

    List<TicketRecordDO> listByTicketId(String ticketId);
}
